package Montecarlo;

public class ClaseMain {

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		Funcion funcObj = new FuncObj();
		Montecarlo montecarlo = new Montecarlo(funcObj, 50000);

		long t1 = System.currentTimeMillis();
		montecarlo.optimizar();
		long t2 = System.currentTimeMillis();

		System.out.println("tiempo = " + (t2 - t1) + " miliseg");

		double minFun = montecarlo.getMinFun();
		System.out.println("minFunc = " + minFun);

		double[] argsFun = montecarlo.getArgs();
		System.out.print("Params Func. = ");
		for (int i = 0; i < argsFun.length; i++)
			System.out.print(argsFun[i] + " ");
	}
}
